﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="InfoList.aspx.cs" Inherits="Manage_news_InfoList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>艺术资讯</title>
    <link href="../../css/table/themes/blue/style.css" rel="stylesheet" type="text/css" media="print, projection, screen"/>
    <link href="../../css/table/jq.css" rel="stylesheet" type="text/css" media="print, projection, screen" />
</head>

<script language="javascript" type="text/javascript" src="../../librarys/jquery.js"></script>
<script language="javascript" type="text/javascript" src="../../librarys/jquery.tablesorter.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function () {
	$('#basicModal input:eq(0)').click(function (e) {
//		e.preventDefault();
//		$('#basicModalContent').modal();
        location.href="CreateNews.aspx?nkey=<%= Request.QueryString["nkey"] %>&name=<%= Request.QueryString["name"] %>&mm_name=<%= Request.QueryString["mm_name"]%>";
	});
	//$("#myTable").tablesorter({sortList: [[0,0], [1,0]]} );
	$("#mytable .edit").click(function(e){
	    location.href="CreateNews.aspx?nkey=<%= Request.QueryString["nkey"] %>&name=<%= Request.QueryString["name"] %>&mm_name=<%= Request.QueryString["mm_name"]%>&id="+$(this).attr("idvalue");
	    return false;
	});
	$("#mytable .delete").click(function(e){
	    return confirm('确定删除该项吗?');
	});
});
</script>
<body>
    <form id="form1" runat="server">
    <div class="main">
        
        <!--列表-->
        <div class="position">
            <a name="Download">位置：<%= Request.QueryString["name"]+"->"+Request.QueryString["mm_name"]%></a>
        </div>        
        <div id='basicModal' style="padding-top:10px;">
        <input type='button' name='basic' value='添加'/>
        </div>
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <table id="mytable" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
                    <thead>
                    <tr>
                        <th>编号</th>
                        <th>内容</th>
                        <th>日期</th>
                    </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td class="first" ><%# PageCount -(AspNetPager1.CurrentPageIndex-1)*AspNetPager1.PageSize-Container.ItemIndex %></td>
                    <td>
                        <div style="font-weight:bold;"><a href='javascript:void(null)' class="edit" idvalue='<%# Eval("id") %>'><%# J.Comm.Text.GetStringLength(Eval("sTitle").ToString(),10) %></a></div>
                        <br />
                        <div>摘要：<%# J.Comm.Text.GetStringLength(Eval("sText").ToString(),200) %>【阅读全文】</div>
                        <br />
                        <div>作者：<%# Eval("sAuthor") %>   点击数：<%# Eval("sHistInt") %> 操作：<a href='javascript:void(null)' class="edit" idvalue='<%# Eval("id") %>'>编辑</a> | <asp:LinkButton ID="lbDelete" runat="server" class="delete" CommandName="delete" CommandArgument='<%# Eval("id") %>'>删除</asp:LinkButton></div>
                    </td>
                    <td class="second"><%# Convert.ToDateTime(Eval("sysTime")).ToString("yyyy/MM/dd")%></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <br />
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server"  Width="100%" AlwaysShow="true"  PageIndexBoxType="DropDownList" TextBeforePageIndexBox="跳转到" HorizontalAlign="Center" PageSize="15" ShowPageIndexBox="always" OnPageChanged="AspNetPager1_PageChanged" >
            </webdiyer:AspNetPager>
       </div>
    </form>
</body>
</html>
